GitHub

您所在的位置:网站首页 create django project GitHub

GitHub

2023-03-04 15:12| 来源: 网络整理| 查看: 265

Twitter Posting Django Project

This is a Django project that allows users to post tweets on their Twitter account using the Twitter API. Users can authenticate with their Twitter account, create a new tweet, and view their own timeline.

Features Twitter authentication with OAuth Ability to post tweets on user's behalf View user's own timeline Getting Started

Clone this repository.

Install the dependencies using pip install -r requirements.txt.

Set up your Twitter developer account and create a new app to obtain your API key, API secret key, access token, and access token secret.

Create a .env file in the root directory of the project and add your Twitter API credentials in the following format:

CONSUMER_KEY= CONSUMER_SECRET= ACCESS_TOKEN= ACCESS_TOKEN_SECRET=

Run python manage.py migrate to apply the database migrations.

Start the development server using python manage.py runserver.

Usage Navigate to http://localhost:8000/ in your web browser. Click on the "Log in with Twitter" button to authenticate with your Twitter account. Once authenticated, you will be redirected to the home page where you can create a new tweet or view your own timeline. Contributing

Contributions are always welcome! If you have any suggestions or found a bug, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

I'am currently working on this project.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3